<#ibizinclude>
../@MACRO/CONTROL/LANGBASE.vue.ftl
</#ibizinclude>
<div :class="['app-list', this.items.length > 0 ? '' : 'app-list-empty' ]">
    <div v-if="items.length > 0" style="height:100%;">
        <#if ctrl.render??>
        ${ctrl.render.code}
        <#else>                 
        <div v-for = "item in items" :key="item.srfkey"  :class="['app-list-item', {'isSelect': item.isselected === true ? true : false}]" @click="handleClick(item)"  @dblclick="handleDblClick(item)">
    <#if ctrl.getItemPSLayoutPanel()??>
        <#assign panel = ctrl.getItemPSLayoutPanel()>
            <@ibizindent blank=16>
            ${P.getCtrlCode(panel, 'CONTROL.html').code}
            </@ibizindent>
        <#elseif ctrl.itemRender??>
            ${ctrl.itemRender.code}
        <#else>
            {{item.srfmajortext}}
        </#if>
        </div>
    </#if>
    </div>
    <div v-else>
        {{$t('<#if langbase??>${langbase}.nodata</#if>')}}
    </div>
</div>